import { ref } from 'vue'
const startTime = ref('')
const endTime = ref('')
const updateTime =() => {
  const date = new Date();
  const year = date.getFullYear();
  const month = String(date.getMonth() + 1).padStart(2, '0');
  const day = String(date.getDate()).padStart(2, '0');
  const day2 = String(date.getDate()+2).padStart(2, '0');
  const hour = String(date.getHours()).padStart(2, '0');
  const minute = String(date.getMinutes()).padStart(2, '0');
  
  // 起止限制时间赋值
  startTime.value = `${year}-${month}-${day} ${hour}:${minute}`;
  endTime.value = `${year}-${month}-${day2} ${hour}:${minute}`;
}
updateTime();		// 更新起止限制时间
export {
	startTime,endTime
}